﻿using System;
using UnityEngine;
using System.Collections;

namespace COC.Character.AI.Provider.Animation
{
    public class AnimationProvider : BaseBehaviour
    {
        protected internal Animator animator;
        void bindAniamtionController(Animator ani)
        {
            animator = ani;
        }
        void play(AnimationProvider.Intent msg)
        {

        }
        private void parseIntent(AnimationProvider.Intent msg)
        {

        }

        public override void OnAwake()
        {
            this.enabled = false;
        }

        public virtual void OnStart()
        {
            //check animation is avaliable

        }

        bool hasNext()
        {
            return false;
        }
        void nextAnimation()
        {

        }

        public enum Intent
        {
            STANDBY = (1 << 1),
            WALK = (2 << 1),
            ATTACK = (3 << 1),
            DEFEND = (4 << 1)

        }
    }
}
